package org.ust.analyse;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.MethodInvocation;

public class MethodInvocationVisitor extends ASTVisitor
{

	private List < MethodInvocation >	methodInvocations;

	public MethodInvocationVisitor ( )
	{
		methodInvocations = new ArrayList < MethodInvocation > ( );
	}

	public boolean visit ( org.eclipse.jdt.core.dom.MethodInvocation node )
	{
		System.out.println ( node.resolveMethodBinding ( ) );

		methodInvocations.add ( node );
		return super.visit ( node );
	}

	public List < MethodInvocation > getMethodInvocations ( )
	{
		return methodInvocations;
	}
}
